Search results
92 packages found
Proxies nodejs require in order to allow overriding dependencies during testing.
Simplifying the use of mocks with Node.js
Simple, intuitive mocking of Node.js modules.
Simplifying the use of mocks with Node.js
NodeJs "require" with mock content and file name and supports babel, pirates, etc
Easy dependency injection for node.js unit testing
Intercept calls to require()
A way of intercepting required Node.js modules.
A mocking utility for node.js require
A node.js library that allows you to hook 'require', gather data about calls to 'require' and intercept/modify the results
Wipes node.js cache in a controlled way.
Wipes webpack cache in a controled way.
Cache-Poisoning applied to Node.js require statements so you inject your own modules
Deep code stubbing for node.js tests. Follow and override behaviour of infinitely nested pieces of code such as methods, require() and npm modules or even instances of classes, etc.
provides native ESM import and globals mocking for unit tests
inject a global variable into a module require() tree
Mocking for commonjs dependencies
Hijack node require calls, with support for hijacking the entire module itself rather than only its properties. Handy for unit testing and mocking require calls in sub modules!
Library that mocks commonjs 'require' calls in your testing environment for Vitest